#docker build -t enic/xdev:0.1 .
#docker run -d --name=enic/xdev:0.1 --volumes-from=data-home -v /  --net=host

FROM ubuntu:20.04
MAINTAINER enic <errorcpp@qq.com>

LABEL name="enic/xdev"
LABEL vendor="0.1"

#添加阿里的apt source
#RUN cp /etc/apt/sources.list /etc/apt/sources.list.d/sources.list
#COPY local_file/sources.list /etc/apt/sources.list

#执行update
RUN apt-get update
RUN apt-get upgrade -y

#安装必要开发工具
RUN apt-get install apt-utils gcc g++ vim gdb cgdb make cmake automake -y

#开启崩溃捕获
RUN ulimit -c unlimited

#清除apt cache
#RUN rm -frd /var/cache/apt
#RUN apt-get clean